package org.tuo.bean;

import org.fhawk.tinyspring.orm.annotation.AutoIncrement;
import org.fhawk.tinyspring.orm.annotation.Entity;
import org.fhawk.tinyspring.orm.annotation.ID;

import java.math.BigDecimal;

/**
 * Created by tuo on 10/8/16.
 */
@Entity
public class Student {
    @ID
    @AutoIncrement
    private int id;
    private String name;
    private BigDecimal money;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    @Override
    public String toString() {
        return "Student{" +
            "id=" + id +
            ", name='" + name + '\'' +
            ", money=" + money +
            '}';
    }
}
